export default {
    login(username,password){
       return new Promise((resolve,reject)=>{
           setTimeout(()=>{
             let result = Math.random();
             if(1>.5)  
                 resolve(username);
             else{
                resolve(username);
             }  
           },3000);
       });
    },
    storeItem(key,value){
        localStorage.setItem(key,value);
    },
    removeItem(key){
        localStorage.removeItem(key);
    }
}
